/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package egovxf.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import egovframework.rte.fdl.cmmn.AbstractServiceImpl;
import egovxf.dao.CommonDAO;
import egovxf.dao.ibatis.CommonDAOiBatisImpl;
import egovxf.service.PatternService;
import egovxf.util.ConventionUtil;

/**
 * @author sleepred
 *
 */
public class PatternServiceImpl extends AbstractServiceImpl implements PatternService {

	static Log log = LogFactory.getLog(PatternServiceImpl.class);
	
	private CommonDAO commonDAO = null;

	public CommonDAO getCommonDAO() {
		return commonDAO;
	}

	public void setCommonDAO(CommonDAO commonDAO) {
		this.commonDAO = commonDAO;
	}
    
    public int update(String queryId, Object parameterObject) {
        return commonDAO.update(queryId, parameterObject);
    }
    
    public int delete(String queryId, Object parameterObject) {
        return commonDAO.delete(queryId, parameterObject);
    }    
     
    public Object insert(String queryId, Object parameterObject) {
        return commonDAO.insert(queryId, parameterObject);
    }    
         
    public Object select(String queryId, Object parameterObject, Class clazz) {
        return commonDAO.select(queryId, parameterObject, clazz);
    } 

    public List list(String queryId, Object parameterObject) {
        return commonDAO.list(queryId, parameterObject);
    }  

    public Map<String, Object> select(String queryId, Object parameterObject) {
        return commonDAO.select(queryId, parameterObject);
    } 

    public List<Map<String, Object>> mlist(String queryId, Object parameterObject) {
        return commonDAO.mlist(queryId, parameterObject);
    }  
    
    public int count(String queryId, Object parameterObject) {
        return commonDAO.count(queryId, parameterObject);
    }  
    
    public int update(Object parameterObject) {
        return commonDAO.update(parameterObject);
    }
    
    public int delete(Object parameterObject) {
        return commonDAO.delete(parameterObject);
    }    
     
    public Object insert(Object parameterObject) {
        return commonDAO.insert(parameterObject);
    }    
         
    public Object select(Object parameterObject, Class clazz) {
        return commonDAO.select(parameterObject, clazz);
    } 

    public List list(Object parameterObject) {
        return commonDAO.list(parameterObject);
    } 
    
    public int count(Object parameterObject) {
        return commonDAO.count(parameterObject);
    }  
    
    public Map<String, Object> select(Object parameterObject) {
    	return commonDAO.select(parameterObject);
    } 
    
    public List<Map<String, Object>> mlist(Object parameterObject) {
    	return commonDAO.mlist(parameterObject);
    }  
} 
